↳ Prolog
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PrologToPiTRSProof
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_AAG(X, Y, Left, Right, Left1, less_in_ag(X, Y))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_AG(X, Y)
LESS_IN_AG(s(X), s(Y)) → U5_AG(X, Y, less_in_aa(X, Y))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AA(X, Y)
LESS_IN_AA(s(X), s(Y)) → U5_AA(X, Y, less_in_aa(X, Y))
LESS_IN_AA(s(X), s(Y)) → LESS_IN_AA(X, Y)
U1_AAG(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_AAG(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
U1_AAG(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U5_GG(X, Y, less_in_aa(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_AA(X, Y)
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_GAG(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GG(Y, X)
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_GAG(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_AAG(X, Y, Left, Right, Right1, less_in_ga(Y, X))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GA(Y, X)
LESS_IN_GA(s(X), s(Y)) → U5_GA(X, Y, less_in_aa(X, Y))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_AA(X, Y)
U3_AAG(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_AAG(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U3_AAG(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PrologToPiTRSProof
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_AAG(X, Y, Left, Right, Left1, less_in_ag(X, Y))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_AG(X, Y)
LESS_IN_AG(s(X), s(Y)) → U5_AG(X, Y, less_in_aa(X, Y))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AA(X, Y)
LESS_IN_AA(s(X), s(Y)) → U5_AA(X, Y, less_in_aa(X, Y))
LESS_IN_AA(s(X), s(Y)) → LESS_IN_AA(X, Y)
U1_AAG(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_AAG(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
U1_AAG(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U5_GG(X, Y, less_in_aa(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_AA(X, Y)
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_GAG(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GG(Y, X)
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_GAG(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_AAG(X, Y, Left, Right, Right1, less_in_ga(Y, X))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GA(Y, X)
LESS_IN_GA(s(X), s(Y)) → U5_GA(X, Y, less_in_aa(X, Y))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_AA(X, Y)
U3_AAG(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_AAG(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U3_AAG(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PrologToPiTRSProof
LESS_IN_AA(s(X), s(Y)) → LESS_IN_AA(X, Y)
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PrologToPiTRSProof
LESS_IN_AA(s(X), s(Y)) → LESS_IN_AA(X, Y)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ NonTerminationProof
↳ PiDP
↳ PrologToPiTRSProof
LESS_IN_AA → LESS_IN_AA
LESS_IN_AA → LESS_IN_AA
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PrologToPiTRSProof
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PrologToPiTRSProof
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PrologToPiTRSProof
U3_GAG(X, Y, Left, Right1, less_out_gg) → INSERT_IN_GAG(X, Right1)
INSERT_IN_GAG(X, tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right1, less_in_gg(Y, X))
U1_GAG(X, Y, Right, Left1, less_out_gg) → INSERT_IN_GAG(X, Left1)
INSERT_IN_GAG(X, tree(Y, Left1, Right)) → U1_GAG(X, Y, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s) → less_out_gg
less_in_gg(s, s) → U5_gg(less_in_aa)
U5_gg(less_out_aa(X, Y)) → less_out_gg
less_in_aa → less_out_aa(0, s)
less_in_aa → U5_aa(less_in_aa)
U5_aa(less_out_aa(X, Y)) → less_out_aa(s, s)
less_in_gg(x0, x1)
U5_gg(x0)
less_in_aa
U5_aa(x0)
From the DPs we obtained the following set of size-change graphs:
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_AAG(X, Y, Left, Right, Left1, less_in_ag(X, Y))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_AG(X, Y)
LESS_IN_AG(s(X), s(Y)) → U5_AG(X, Y, less_in_aa(X, Y))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AA(X, Y)
LESS_IN_AA(s(X), s(Y)) → U5_AA(X, Y, less_in_aa(X, Y))
LESS_IN_AA(s(X), s(Y)) → LESS_IN_AA(X, Y)
U1_AAG(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_AAG(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
U1_AAG(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U5_GG(X, Y, less_in_aa(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_AA(X, Y)
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_GAG(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GG(Y, X)
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_GAG(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_AAG(X, Y, Left, Right, Right1, less_in_ga(Y, X))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GA(Y, X)
LESS_IN_GA(s(X), s(Y)) → U5_GA(X, Y, less_in_aa(X, Y))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_AA(X, Y)
U3_AAG(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_AAG(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U3_AAG(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
↳ Prolog
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_AAG(X, Y, Left, Right, Left1, less_in_ag(X, Y))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_AG(X, Y)
LESS_IN_AG(s(X), s(Y)) → U5_AG(X, Y, less_in_aa(X, Y))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AA(X, Y)
LESS_IN_AA(s(X), s(Y)) → U5_AA(X, Y, less_in_aa(X, Y))
LESS_IN_AA(s(X), s(Y)) → LESS_IN_AA(X, Y)
U1_AAG(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_AAG(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
U1_AAG(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U5_GG(X, Y, less_in_aa(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_AA(X, Y)
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_GAG(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GG(Y, X)
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_GAG(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_AAG(X, Y, Left, Right, Right1, less_in_ga(Y, X))
INSERT_IN_AAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GA(Y, X)
LESS_IN_GA(s(X), s(Y)) → U5_GA(X, Y, less_in_aa(X, Y))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_AA(X, Y)
U3_AAG(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_AAG(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U3_AAG(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
↳ Prolog
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
LESS_IN_AA(s(X), s(Y)) → LESS_IN_AA(X, Y)
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
↳ Prolog
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
LESS_IN_AA(s(X), s(Y)) → LESS_IN_AA(X, Y)
↳ Prolog
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ NonTerminationProof
↳ PiDP
LESS_IN_AA → LESS_IN_AA
LESS_IN_AA → LESS_IN_AA
↳ Prolog
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
insert_in_aag(X, void, tree(X, void, void)) → insert_out_aag(X, void, tree(X, void, void))
insert_in_aag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_aag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_aag(X, Y, Left, Right, Left1, less_in_ag(X, Y))
less_in_ag(0, s(X)) → less_out_ag(0, s(X))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_aa(X, Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
U5_ag(X, Y, less_out_aa(X, Y)) → less_out_ag(s(X), s(Y))
U1_aag(X, Y, Left, Right, Left1, less_out_ag(X, Y)) → U2_aag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, void, tree(X, void, void)) → insert_out_gag(X, void, tree(X, void, void))
insert_in_gag(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gag(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
U1_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gag(X, Y, Left, Right, Left1, insert_in_gag(X, Left, Left1))
insert_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_gag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
U2_aag(X, Y, Left, Right, Left1, insert_out_gag(X, Left, Left1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
insert_in_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_aag(X, Y, Left, Right, Right1, less_in_ga(Y, X))
less_in_ga(0, s(X)) → less_out_ga(0, s(X))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_aa(X, Y))
U5_ga(X, Y, less_out_aa(X, Y)) → less_out_ga(s(X), s(Y))
U3_aag(X, Y, Left, Right, Right1, less_out_ga(Y, X)) → U4_aag(X, Y, Left, Right, Right1, insert_in_gag(X, Right, Right1))
U4_aag(X, Y, Left, Right, Right1, insert_out_gag(X, Right, Right1)) → insert_out_aag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
↳ Prolog
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U1_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GAG(X, Left, Left1)
U3_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GAG(X, Right, Right1)
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_aa(X, Y))
U5_gg(X, Y, less_out_aa(X, Y)) → less_out_gg(s(X), s(Y))
less_in_aa(0, s(X)) → less_out_aa(0, s(X))
less_in_aa(s(X), s(Y)) → U5_aa(X, Y, less_in_aa(X, Y))
U5_aa(X, Y, less_out_aa(X, Y)) → less_out_aa(s(X), s(Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
U3_GAG(X, Y, Left, Right1, less_out_gg(Y, X)) → INSERT_IN_GAG(X, Right1)
INSERT_IN_GAG(X, tree(Y, Left, Right1)) → U3_GAG(X, Y, Left, Right1, less_in_gg(Y, X))
U1_GAG(X, Y, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GAG(X, Left1)
INSERT_IN_GAG(X, tree(Y, Left1, Right)) → U1_GAG(X, Y, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s) → less_out_gg(0, s)
less_in_gg(s, s) → U5_gg(less_in_aa)
U5_gg(less_out_aa(X, Y)) → less_out_gg(s, s)
less_in_aa → less_out_aa(0, s)
less_in_aa → U5_aa(less_in_aa)
U5_aa(less_out_aa(X, Y)) → less_out_aa(s, s)
less_in_gg(x0, x1)
U5_gg(x0)
less_in_aa
U5_aa(x0)
From the DPs we obtained the following set of size-change graphs: